import { _decorator, Component, Node, SpriteFrame } from 'cc';
import { DialogViewManager } from '../managers/DialogViewManager';
import { GlobelMgr } from '../managers/GlobelMgr';
import { LandUI } from './MainSon/LandUI';
import { AudioMgr } from '../managers/AudioMgr';
const { ccclass, property } = _decorator;

@ccclass('Main')
export class Main extends Component{
    @property(Node)
    tipsNode:Node;
    @property(SpriteFrame)
    spriteFrames:Array<SpriteFrame>=[];
    @property(LandUI)
    lanUI:LandUI;
    start() {
        GlobelMgr.instance.setPersistentNode(this.tipsNode);
        DialogViewManager.instance.init();
        AudioMgr.instance.init();
        this.lanUI.startScript();
    }
}


